You are here: Symbol Reference > Dew Namespace > Dew.Stats Namespace > Dew.Stats.Units Namespace > Classes > Statistics Class > Statistics Methods > Statistics.LogisticFit Method
Dew Stats for .NET
ContentsIndexHome
PreviousUpNext
Statistics.LogisticFit Method

Calculate parameters for Logistic distributed values.

Syntax
C#
Visual Basic
public static void LogisticFit([In] TVec X, out double m, out double b);
Parameters 
Description 
[In] TVec X 
Stores data which is assumed to follow logistic distribution. 
out double m 
Return Logistic distribution parameter estimator M. 
out double b 
Return Logistic distribution parameter estimator b. 

RandomLogistic

The following example generates 100 random logistic distributed values and then uses LogisticFit routine to extract used m and b parameters

using Dew.Math; using Dew.Stats; using Dew.Stats.Units; namespace Dew.Examples; { private void Example() { Vector Data = new Vector(100); StatRandom.RandomLogistic(3,0.2,Data, -1); double m, b; Statistics.LogisticFit(Data, out m, out b); // m approx 3.0 // b approx 0.2 } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!